#ifndef SERVER_H
#define SERVER_H

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/sem.h>
#include <pthread.h>
#include "tools.h"

#define BUFLEN 4096

extern ClientToServe ctos;

void destroy(char* buf);

void login(char* buf);

void openAccount(char* buf);

void query(char* buf);

void resetPassword(char* buf);

void save(char* buf);

void take(char* buf);

void transfer(char* buf);

void unlock(char* buf);

#endif//SERVER_H
